﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.infodms.dms.common.Constant" %>
<%@ page import="com.infodms.dms.common.FileConstant"%>
<%
	String contextPath = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=7">
	<link href="<%=contextPath %>/style/content.css" rel="stylesheet" type="text/css" />
	<link href="<%=contextPath %>/style/dtree1.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<%=contextPath %>/js/jslib/mootools.js"></script>
	<script type="text/javascript" src="<%=contextPath %>/js/web/mtcommon.js" charset="UTF-8"></script>
	<script type="text/javascript" src="<%=contextPath %>/js/framecommon/default.js" charset="UTF-8"></script>
	<script type="text/javascript" src="<%=contextPath %>/js/validate/validate.js" charset="UTF-8"></script>
	<script type="text/javascript" src="<%=contextPath %>/js/web/role.js" charset="UTF-8"></script>
	<script type="text/javascript" src="<%=contextPath %>/js/web/dtree.js"></script>
	<script type="text/javascript" src="<%=FileConstant.codeJsUrl%>"></script>
	<script type="text/javascript" src="<%=contextPath%>/js/dict.js"></script>
	<script type="text/javascript" src="<%=contextPath %>/js/jslib/dialog_new.js"></script>
<title>角色维护</title>
<script>
	   var filecontextPath="<%=contextPath%>";
</script>
</head>

<script type="text/javascript">
	var tree_url = "<%=contextPath%>/sysmng/sysrole/ActionSysRole/initFunTree.json";
	var roleSearch = "<%=contextPath%>/sysmng/sysrole/ActionSysRole/querySysRoleInit.do";
	var path = "<%=contextPath%>";
</script>

<style type="text/css">
.table_list td{
			line-height:0em;
		}
</style>

<body>
<div class="navigation"><img src="<%=contextPath%>/img/nav.gif" />&nbsp;当前位置： 系统管理 &gt; 用户管理 &gt; 角色维护</div>
<form id="myfm" name="myfm">
<input type="hidden" value="" id="FUNS" name="FUNS" />
<input type="hidden" value="" id="GG" name="GG" />
<table class="table_query" border="0" style="border:1px solid #DAE0EE">
	<tr>
	  <td class="table_query_2Col_label_4Letter" nowrap="nowrap">角色类别：</td>
	  <td class="table_query_2Col_input" nowrap="nowrap">
			<script type="text/javascript"> genSelBox("ROLE_TYPE",<%=Constant.SYS_USER%>,"",false,"","onchange='selType(this,<%=Constant.SYS_USER_SGM%>,<%=Constant.SYS_USER_DEALER%>)'");</script>
	  </td>
	  <td class="table_query_2Col_label_4Letter" nowrap="nowrap">角色代码：</td>
	  <td class="table_query_2Col_input" nowrap="nowrap">
        <input class="middle_txt" maxlength="30" onkeydown="clearDiv()" datatype="0,is_digit_letter,30" type="text" id="ROLE_NAME" name="ROLE_NAME"/>
      </td>
	</tr>
	<tr>
	  <td class="table_query_2Col_label_4Letter" nowrap="nowrap">角色名称：</td>
	  <td class="table_query_2Col_input" nowrap="nowrap">
        <input class="middle_txt" maxlength="30" datatype="0,is_null,30" type="text" id="ROLE_DESC" name="ROLE_DESC"/>
      </td>
		<td class="table_query_2Col_label_4Letter" nowrap="nowrap">状态：</td>
		<td class="table_query_2Col_input" nowrap="nowrap">
          <script type="text/javascript"> genSelBox("ROLE_STATUS",<%=Constant.STATUS%>,"",false,"","");</script>
        </td>
	</tr>
</table>
</form>
<br />
<table width="100%">
	<tr>
		<td align="center">
			<input class="normal_btn" type="button" value="确 定" id="mysub" onclick="sub('<%=contextPath%>/sysmng/sysrole/ActionSysRole/sysRoleAdd.json')"/>
			<input class="normal_btn" type="button" value="返 回" id="myfh" onclick="toGoRoleSearch()"/>
			</td>
	</tr>
</table>
<br />
<table class="de_table_list" style="border-bottom:0px solid #DAE0EE">
	<tr class="table_list_th">
		<td><img class="nav" src="<%=contextPath%>/img/subNav.gif" />&nbsp;功能列表</td>
	</tr>
	<tr class="table_list_th">
		<td valign="top" style="padding:10px;" id="treetd">
			<div id='dtree' class="dtree" style="border:1px solid #5E7692;width: 300px;height:350px; position: absolute;overflow:auto">
			</div>
		</td>
	</tr>
</table>

<div id="erdiv" style="position: absolute; top:-1000px; background: #FDFFCE; height: 17px; border:1px solid #FFBA43; display: none;">
<img style="margin-top: 1px; margin-left: 2px;" src="<%=contextPath%>/img/exclamation.gif" />
<span id="ermsg" style="color: red; position: absolute; margin-top: 1px;"></span></div>
</body>
</html>
